import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from './stores/index'
import '@/assets/main.scss'
import NutUI from '@nutui/nutui'
import '@nutui/nutui/dist/style.css'
import {
  Row,
  Col,
  Tabbar,
  TabbarItem,
  Space,
  Skeleton,
  PullRefresh
} from '@nutui/nutui'
import { IconFont } from '@nutui/icons-vue'
import '@nutui/icons-vue/dist/style_iconfont.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { BaiduMap, BmMarker } from 'vue-baidu-map-3x'

const app = createApp(App)

app.use(pinia)
app.use(ElementPlus)
app.use(router)
app.use(NutUI)
app.mount('#app')

app.use(Row)
app.use(Col)
app.use(Tabbar)
app.use(TabbarItem)
app.use(Space)
app.use(IconFont)
app.use(Skeleton)
app.use(PullRefresh)
app.use(BaiduMap, BmMarker,  {
  // 在百度地图开发者平台申请的密钥
  ak: 'gjRw6Di1HNthyJE0lM512A70Gq3ngsad'
  // 默认使用 3.0 版本的地图
  // 如果需要使用 2.0 版本，可以设置 v: '2.0'
  // 如果需要使用 WebGL 模式，可以设置 type: 'WebGL'
})
